package com.framework.web.bus.repository;

import com.framework.web.bus.domain.GoodsType;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

import java.util.List;

/**
* @Title: Repository
* @Description: repository
* @author laowang
* @date 2016-09-11
* @version V1.0
*
*/
public interface GoodsTypeRepository extends JpaRepository<GoodsType, String>,
JpaSpecificationExecutor<GoodsType> {

    /**
     * 根据status查询
     * @param status
     * @return
     */
    public List<GoodsType> findAllByStatusOrderByCreateTime(Integer status);

}